<?php

	class JSONReply
	{
		public $data = null;
		public $success = false;
		public $errorCode = 1;
		public $errorText = "Not set";

		public function SetData($data)
		{
			$this->data = $data;
            $this->success = true;
		}

        public function SetError($errorMessage, $errorCode)
        {
            $this->errorText = $errorMessage;
            $this->success = false;
            $this->errorCode = $errorCode;
        }

        public function GetStatus()
        {
            return $this->success;
        }

        public function GetErrorText()
        {
            return $this->errorText;
        }

        public function GetErrorCode()
        {
            return $this->errorCode;
        }
	}

?>